package io.gitee.vexlife.snake.basic;

public enum FoodShape {

	CIRCLE(0, "圆形"), SQUARE(1, "正方形");

	String name;
	int index;

	FoodShape(int i, String name) {
		this.index = i;
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	@Override
	public String toString() {
		return this.getName();
	}

}
